const checkFormat = {
	isArray(val) {
		return (typeof val =='object') && val.constructor == Array;
	},
	isObject(val) {
		return (typeof val =='object') && val.constructor == Object;
	},
	isString(val) {
		return (typeof val =='string') && val.constructor == String;
	},
	isNumber(val) {
		return (typeof val =='number') && val.constructor == Number;
	},
	isDate(val) {
		return (typeof val =='object') && val.constructor == Date;
	},
	isBoolean(val) {
		return (typeof val =='boolean') && val.constructor == Boolean;
	},
	isFunction(val) {
		return (typeof val =='function') && val.constructor == Function;
	}
}

export default checkFormat;